class Lady {
  content = "hi,帅哥";
  sayHello() {
    return this.content;
  }
}

const goddess = new Lady();
console.log(goddess.sayHello());
console.log("---");
class XiaoJieJie extends Lady {
  sayLove() {
    return " I  Love U";
  }
  sayHello() {
    return "Hi ,honey";
  }
  saySuperHello() {
    return super.sayHello(); //指向父类的方法  super 指向父类
  }
}

const god = new XiaoJieJie();
console.log(god.sayHello());
console.log(god.sayLove());
console.log(god.saySuperHello());
